package com.ebelter.temperaturegun.utils;


import com.ebelter.btcomlib.utils.NumUtils;

public class TemGunUtil {


    public static float getDisTemC(float srcValue){
        //srcValue 36.57   --->36.5
        int temp = (int) (srcValue*100);
        temp = temp/10;
        float r= (float) (temp*1.0/10.0);
        return NumUtils.numBaoLiuWei1(r);
    }

    public static float getDisTemF(float srcValue){
        //srcValue 36.57   --->36.5
        srcValue = (float) ((srcValue*1.8)+32);//97.826

        int temp = (int) (srcValue*100);
        temp = temp/10;
        float r= (float) (temp*1.0/10.0);
        return NumUtils.numBaoLiuWei1(r);
    }

}
